import request from '@/utils/request'
import { payApi } from '@/utils/comm'

// 查询列表
export function getList(query) {
  return request({
    url: `${payApi}/scoreOrder/list`,
    method: 'get',
    params: query
  })
}

// 查询详情
export function getDrtail(id) {
  return request({
    url: `${payApi}/scoreOrder/${id}`,
    method: 'get',
  })
}

// 取消支付分订单信息
export function cancelScoreOrder(query) {
  return request({
    url: `${payApi}/scoreOrder/cancel`,
    method: 'put',
    data: query
  })
}